package com.warmheart.base.annotation;


import com.warmheart.core.enums.OperationType;

import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@Documented
@Inherited
public @interface AddOperateLog {
    /**
     * 是否记录操作日志 true=验证 ,false = 不验证
     *
     * @return
     */
    public boolean addLog() default true;

    /**
     * 标识操作类型insert,delete,query,update
     */
    OperationType value();
}
